import request from '@/utils/request'

// 查询合伙人申请列表
export function listApplicationson(query) {
  return request({
    url: '/system/partnerApplication/list',
    method: 'get',
    params: query
  })
}

// 查询合伙人申请详细
export function getApplicationson(partnerId) {
  return request({
    url: '/system/partnerApplication/' + partnerId,
    method: 'get'
  })
}

// 新增合伙人申请
export function addApplicationson(data) {
  return request({
    url: '/system/partnerApplication',
    method: 'post',
    data: data
  })
}

// 修改合伙人申请
export function updateApplicationson(data) {
  return request({
    url: '/system/partnerApplication',
    method: 'put',
    data: data
  })
}

// 删除合伙人申请
export function delApplicationson(partnerId) {
  return request({
    url: '/system/partnerApplication/' + partnerId,
    method: 'delete'
  })
}
